import { legacy_createStore, applyMiddleware } from "redux"
import thunk from "redux-thunk"
import logger from "redux-logger"
const initialState = {}

const reducer =  (state = initialState, { type, payload }:any) => {
  switch (type) {

  case "first":
    return { ...state, ...payload }

  default:
    return state
  }
}
const store = legacy_createStore(reducer, applyMiddleware(thunk, logger))
export default store



// rxr